/**
 * 
 */
package exteditapp;

/**
 * One entry in settings list
 * @author Arturas Smorgun, arturas@smorgun.lt
 */
public class SettingsEntry {
	
	/**
	 * Entry name
	 */
	protected String name;
	
	/**
	 * Entry value
	 */
	protected String value;
	
	/**
	 * Default constructor
	 * @param myname name of new entry
	 * @param myvalue value of new entry
	 */
	public SettingsEntry(String myname, String myvalue){
		set(myname, myvalue);
	}
	
	/**
	 * Return name
	 * @return name
	 */
	public String getName(){
		return name;
	}
	
	/**
	 * Set name
	 * @param myname new name
	 */
	public void setName(String myname){
		name = myname;
	}
	
	/**
	 * Return value
	 * @return value
	 */
	public String getValue(){
		return value;
	}
	
	/**
	 * Set value
	 * @param myvalue new value
	 */
	public void setValue(String myvalue){
		value = myvalue;
	}
	
	/**
	 * Set both name and value
	 * @param myname new name
	 * @param myvalue new value
	 */
	public void set(String myname, String myvalue){
		setName(myname);
		setValue(myvalue);
	}

}
